package cn.kmust.project01.service;

import cn.kmust.project01.entity.Notice;
import org.springframework.stereotype.Service;

import java.util.List;

public interface NoticeService {

    //查询全部公告
    List<Notice> queryAll();

    //根据id查询公告
    Notice queryById(Integer id);

    //根据发布人查询公告
    List<Notice> queryByMan(Integer jobNumber);
    //新增公告
    int addNotice(Notice notice);
    //修改公告
    int updateNotice(Integer id);
}
